﻿@model Gman.WebApp.Models.ServicioModel

<script src="../../Scripts/Binding/Servicio.js" type="text/javascript"></script>

<script type="text/javascript">
    var guid = "@( Model.ID.ToString())";
    var action = "@( Model.Action.ToString())";

    $(document).ready(function () {

        SetupControls();

        $("#AddBien").click(function () {
            LoadAddOrEditBienes(null);
        });


    });

</script>

<table>
    <tr>
        <td style="width: 150px;">
            <div class="editor-label">
                Tipo</div>
        </td>
        <td style="width: 300px">
            <div>
                @( Html.DropDownListFor(model => model.Servicio.TipoServ, Model.Tipo, new { style = "width: 250px;", propertyname = "Servicio.TipoServ" }))
            </div>
        </td>
    </tr>
    <tr>
        <td style="width: 150px;">
            <div class="editor-label">
                Linea / Sistema</div>
        </td>
        <td style="width: 300px">
            <div>
                @( Html.DropDownListFor(model => model.Servicio.SistServ, Model.Linea, new { style = "width: 250px;", propertyname = "Servicio.SistServ" }))
            </div>
        </td>
    </tr>
    <tr>
        <td style="width: 150px;">
            <div class="editor-label">
                Categoria</div>
        </td>
        <td style="width: 300px">
            <div>
                @( Html.DropDownListFor(model => model.Servicio.CatServ, Model.Categoria, new { style = "width: 250px;", propertyname = "Servicio.CatServ" }))
            </div>
        </td>
    </tr>
    <tr>
        <td style="width: 150px;">
            <div class="editor-label">
                Sub Categoria</div>
        </td>
        <td style="width: 300px">
            <div>
                @( Html.DropDownListFor(model => model.Servicio.SubCatServ, Model.SubCategoria, new { style = "width: 250px;", propertyname = "Servicio.SubCatServ" }))
            </div>
        </td>
    </tr>
    <tr>
        <td style="width: 150px;">
            <div class="editor-label">
                Descripcion Servicio</div>
        </td>
        <td style="width: 600px">
            <div>
                @( Html.TextBoxFor(model => model.Servicio.DescServ, new { style = "width: 550px;", propertyname = "Servicio.DescServ" }))
                <img id="btnBuscar" src="../../_Images/Search-icon-16.png" alt="Buscar Servicio"
                    style="cursor: pointer;" />
            </div>
        </td>
    </tr>
    <tr>
        <td style="width: 150px;">
            <div class="editor-label">
                Unidad Medida</div>
        </td>
        <td style="width: 300px">
            <div>
                @( Html.TextBoxFor(model => model.Servicio.UniMedServ, new { style = "width: 250px;", propertyname = "Servicio.UniMedServ" }))
            </div>
        </td>
    </tr>
    <tr>
        <td style="width: 150px;">
            <div class="editor-label">
                Tiempo(dias)</div>
        </td>
        <td style="width: 300px">
            <div>
                @( Html.TextBoxFor(model => model.Servicio.TmpoAtencServ, new { style = "width: 250px;", propertyname = "Servicio.TmpoAtencServ" }))
            </div>
        </td>
    </tr>
    <tr>
        <td style="width: 150px;">
            <div class="editor-label">
                plazo(dias)</div>
        </td>
        <td style="width: 300px">
            <div>
                @( Html.TextBoxFor(model => model.Servicio.PlazoMaxServ, new { style = "width: 250px;", propertyname = "Servicio.PlazoMaxServ" }))
            </div>
        </td>
    </tr>
    <tr>
        <td style="width: 150px;">
            <div class="editor-label">
                Importe (S/.)</div>
        </td>
        <td style="width: 300px">
            <div>
                @( Html.TextBoxFor(model => model.Servicio.ImpServ, new { style = "width: 250px;", propertyname = "Servicio.ImpServ" }))
            </div>
        </td>
        <td>
            <div style="height: 30px; float: left">
                <input id="AddProveedor" type="submit" value="Proveedores" style="float: right;" />
            </div>
        </td>
        <td>
            <div style="height: 30px; float: left">
                <input id="AddBien" type="submit" value="Bienes" style="float: right;" />
            </div>
        </td>
    </tr>
</table>